package com.zxq.uart.controller;

import com.zxq.uart.frame.decoder._15QueryPowerScaleResult;
import com.zxq.uart.frame.encoder._15QueryPowerScaleCmd;
import com.zxq.uart.result.ResultVO;
import com.zxq.uart.service.impl.PlatformExchange;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class _15QueryPowerScaleController extends PlatformExchange<_15QueryPowerScaleCmd, _15QueryPowerScaleResult> {

    @Override
    public Integer getCmd() {
        return 0x15;
    }

    @PostMapping("exchange/15")
    @Override
    public ResultVO<_15QueryPowerScaleResult> exchange(@RequestBody _15QueryPowerScaleCmd order) {
        return super.exchange(order);
    }

    @Override
    public _15QueryPowerScaleResult getResult() {
        _15QueryPowerScaleResult queryPowerScaleResult  = new _15QueryPowerScaleResult();
        return queryPowerScaleResult;
    }

}
